package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.AssessmentDetail;
import com.zhijian.medical.entity.vo.request.AssessmentDetailSearchVo;
import com.zhijian.medical.entity.vo.response.AssessmentDetailVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AssessmentDetailMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据考核id进行删除
     *
     * @param assessmentId
     * @return
     */
    int deleteByAssessmentId(Long assessmentId);

    int insert(AssessmentDetail record);

    int insertSelective(AssessmentDetail record);

    AssessmentDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AssessmentDetail record);

    int updateByPrimaryKey(AssessmentDetail record);

    int count(AssessmentDetailSearchVo assessmentDetailSearchVo);

    List<AssessmentDetailVo> selectList(AssessmentDetailSearchVo assessmentDetailSearchVo);

    AssessmentDetailVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<AssessmentDetail> entities);
}